package main

import (
	"fmt"
	"net/http"
)

func myHandler(w http.ResponseWriter, r *http.Request) {
	fmt.Fprintln(w, "通过自定义MuxServer来调用")
}

func main() {
	Mux := http.NewServeMux()
	Mux.HandleFunc("/", myHandler)
	http.ListenAndServe(":8080", Mux)
}
